home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / M / Menu Events 1.2.sit / Menu Events 1.2 / Menu Events Help.rsrc / STR#_1030.txt < prev    next >
Encoding:
Text File  |  1994-10-17  |  5.0 KB  |  267 lines

  1. 
  2.  
  3. 
  4.  
  5. l
  6.  
  7. l
  8.  
  9. åLimitations
  10.  
  11. 
  12.  
  13. 
  14.  
  15. Some applications refuse to submit to the trickery of Menu Events.  The
  16.  
  17. prime example is any version of Finder which predates the Power
  18.  
  19. Macintosh (version 7.1.2).  It is not truly an Apple event server, and it
  20.  
  21. only respects events of known types.  Any other high-level event is not
  22.  
  23. replied to, and the send will time out.  ResEdit 2.1.1 is similar.  Some
  24.  
  25. Microsoft applications handle Apple events in a non-standard fashion,
  26.  
  27. binding their own event handlers over all Apple event classes, and
  28.  
  29. therefore should not be targeted.
  30.  
  31. 
  32.  
  33. 
  34.  
  35. The only way to know for sure is to try the ones you are interested in
  36.  
  37. controlling.  Certainly, anything you write yourself is a candidate, as long
  38.  
  39. as you follow the practices suggested in Apple documentation, namely:  Be
  40.  
  41. high-level-event-aware.  Always be ready to accept and dispatch an
  42.  
  43. Apple event.  Assume that any high-level event you don‚Äôt recognize is an
  44.  
  45. Apple event, and dispatch it as such.  If an unknown event reaches your
  46.  
  47. wildcard event handler, return errAEEventNotHandled, so that system
  48.  
  49. event handlers can get a crack at it.  Don‚Äôt deny other programs on the
  50.  
  51. same machine the right to request user interaction, which is the default.
  52.  
  53. 
  54.  
  55. Another limitation you should know about is that Menu Events can‚Äôt
  56.  
  57. operate dialogs and alerts which the target application may post in
  58.  
  59. response to the menu action.  If the menu item text ends in an ellipsis
  60.  
  61. ('‚Ķ') character, you can bet that the application will post a dialog or alert
  62.  
  63. box.  It is then up to the local user to operate the controls.
  64.  
  65. 
  66.  
  67. A known conflict exists between Menu Events and Help on Wheels.  If you
  68.  
  69. send a Menu event to an application which does a casual help display
  70.  
  71. before performing the menu action, and if the help server is running,
  72.  
  73. problems may occur with the application.  The problem is that the Menu
  74.  
  75. event‚Äôs user interaction ends when the receiving application sends an
  76.  
  77. Apple event to the help server, causing it to return to the background.  If
  78.  
  79. the menu action causes a call to the Standard File Manager or any other
  80.  
  81. code which should not be called when in the background, the application
  82.  
  83. may hang.
  84.  
  85. 
  86.  
  87. 
  88.  
  89. 
  90.  
  91. 
  92.  
  93. –
  94.  
  95. –
  96.  
  97. √•Programmer Notes
  98.  
  99. 
  100.  
  101. 
  102.  
  103. Write to the author at the above address if you want to know more about
  104.  
  105. the Menu Events extension or how it was programmed.
  106.  
  107. 
  108.  
  109. 
  110.  
  111. 
  112.  
  113. 
  114.  
  115. 
  116.  
  117. 4
  118.  
  119. 4
  120.  
  121. åAcknowledgements
  122.  
  123. 
  124.  
  125. 
  126.  
  127. Thanks to C.K. Haun and the other folks at Apple Developer Technical
  128.  
  129. Support who put together those clever little code snippets which give
  130.  
  131. folks like me such odd ideas.
  132.  
  133. 
  134.  
  135. 
  136.  
  137. Special thanks to the many fine people who beta-tested this software,
  138.  
  139. including Ken Linger, Chris Reynolds, Michele Marques, Chris Kaltwasser,
  140.  
  141. James Edward Davis, and Leonard Rosenthol, and to Fred Terry for his
  142.  
  143. hospitality at the MacScripting mailing list.
  144.  
  145. 
  146.  
  147. 
  148.  
  149. 
  150.  
  151. 
  152.  
  153. ò
  154.  
  155. ò
  156.  
  157. √•Revision History
  158.  
  159. 
  160.  
  161. 
  162.  
  163. Click on any underlined item in this listing to read more about the revision
  164.  
  165. it describes.
  166.  
  167. 
  168.  
  169. 
  170.  
  171. 1.2 (October 17, 1994)
  172.  
  173. ‚Ä¢  Public AWOL Utilities 1.2 release.
  174.  
  175. ‚Ä¢  No revisions.
  176.  
  177. 
  178.  
  179. 1.1.2 (April 19, 1994)
  180.  
  181. ‚Ä¢  Added support for script recording by forcing high-level-event-aware
  182.  
  183. applications to send themselves Menu events when the user selects a
  184.  
  185. menu item and the Caps Lock key is down.
  186.  
  187. ‚Ä¢  Added support for modifier keys (Shift, Control, Option, Command) in
  188.  
  189. the Select Menu Item event.
  190.  
  191. ‚Ä¢  Removed the nonStandardMenuErr (-21004) code in favor of the new
  192.  
  193. keyMenuMDEFID parameter in the reply to the Query Menu List event, to
  194.  
  195. improve compatibility with target applications which use slightly
  196.  
  197. non-standard menu definition procedures.
  198.  
  199. 
  200.  
  201. 1.1.1 (April 11, 1994)
  202.  
  203. ‚Ä¢  Added ‚ÄúMenu Events Scripting Addition‚Äù and ‚ÄúMenu Events Sample
  204.  
  205. Script‚Äù in place of ‚ÄúMenu Events 'aete'‚Äù resource file.
  206.  
  207. 
  208.  
  209. 1.1 (March 28, 1994)
  210.  
  211. ‚Ä¢  Public AWOL Utilities 1.1 release.
  212.  
  213. ‚Ä¢  Documented that Menu Events works with Finder 7.1.2.
  214.  
  215. 
  216.  
  217. 1.0.7 (March 13, 1994)
  218.  
  219. ‚Ä¢  Menu Events Help presents a useful message if the user tries to open or
  220.  
  221. print it when the help server is absent.
  222.  
  223. 
  224.  
  225. 1.0.6 (February 27, 1994)
  226.  
  227. ‚Ä¢  Added protection against loading duplicate copies of the extension.
  228.  
  229. 
  230.  
  231. 1.0.5 (February 6, 1994)
  232.  
  233. ‚Ä¢  Improved compatibility with At Ease and other applications which flush
  234.  
  235. mouse-down events when they become active.
  236.  
  237. 
  238.  
  239. 1.0.4 (January 30, 1994)
  240.  
  241. ‚Ä¢  If the Shift key is pressed on startup, the extension will not be loaded.
  242.  
  243. If the Help or Command-? key is pressed, the extension will delay up to
  244.  
  245. one second to let the user release the key(s).
  246.  
  247. 
  248.  
  249. 1.0.3 (January 19, 1994)
  250.  
  251. ‚Ä¢  Added ‚ÄúMenu Events 'aete'‚Äù resource file.
  252.  
  253. 
  254.  
  255. 1.0.2 (January 11, 1994)
  256.  
  257. ‚Ä¢  Fixed bug which sent the target application into a notification wait state
  258.  
  259. if it received a Menu event from a remote sender.
  260.  
  261. 
  262.  
  263. 1.0.1 (December 31, 1993)
  264.  
  265. ‚Ä¢  Initial AWOL Utilities 1.0.1 release.
  266.  
  267.